﻿//
// Created: 2018/9/6
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.WXshopBuiness
{
    public class  WeiXinProductAttr:IEntity
    {

        ///<summary>
        ///记录id
        ///<summary>
        public string ID { get; set; }
        ///<summary>
        ///商品id
        ///<summary>
        public string  ProductId  { get; set; }
        ///<summary>
        ///属性id
        ///<summary>
        public int AttrId  { get; set; }
        ///<summary>
        ///属性值id
        ///<summary>
        public int AttrValueId  { get; set; }
        ///<summary>
        ///输入值
        ///<summary>
        public string Inputvalue  { get; set; } 
         
       
        public int IsInput { get;set;}

       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
    /// <summary>
    /// 前端提交数据的模型
    /// </summary>
    public class WeiXinProductAttrModel 
    {       
        ///<summary>
        ///商品id
        ///<summary>
        public string ProductId { get; set; }
        ///<summary>
        ///属性id
        ///<summary>
        public int AttrId { get; set; }
        ///<summary>
        ///属性值id
        ///<summary>
        public int AttrValueId { get; set; }
        ///<summary>
        ///输入值
        ///<summary>
        public string Inputvalue { get; set; }

        [NotMapped]
        public int IsInput { get; set; }
       
    }
    /// <summary>
    /// 前端展示使用的模型
    /// </summary>
    public class WeiXinProductAttrShowModel
    {
      public string ProductId { get; set; }
      public int AttrId { get; set; }
      public int AttrValueId { get; set; }
      public string  Inputvalue { get; set; }
      public string AttrGroupName { get; set; }
      public string  AttrName { get; set; }
      public int AttrGroupId { get; set; }
      public string AttrValue { get; set; }
      public int IsInput { get; set; }

    }
}